package factory

import (
	"cid-media-api/internal/adcore"
	"cid-media-api/internal/ocean"
	"cid-media-api/internal/tiktok"
	"strconv"
)

func GetBatchCreator(advertiserID int64, accessToken string, platform int) adcore.BatchAdCreator {
	switch platform {
	case 1:
		return ocean.NewOceanAdapter(advertiserID, accessToken)
	case 11:
		return tiktok.NewTikTokAdapter()
	default:
		panic("unsupported platform: " + strconv.Itoa(platform))
	}
}
